﻿using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace FHOClient
{
    public class HUDImageObject
    {
        private Texture2D myPic;
        public int X;
        public int Y;

        public void Setup(GraphicsDeviceManager graphics, string FileName, Color TransparencyColor)
        {
            TextureCreationParameters tcp = TextureCreationParameters.Default;
            tcp.ColorKey = TransparencyColor;
            tcp.Format = SurfaceFormat.Rgba32;
            myPic = Texture2D.FromFile(graphics.GraphicsDevice, FileName, tcp);
        }

        public Texture2D Picture
        {
            get { return myPic; }
        }

        public int Width 
        {
            get { return myPic.Width; }
        }

        public int Height 
        {
            get { return myPic.Height; }
        }
    }
}
